<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.AAL.Model.Account"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<%
	Account myAccount = null;
	
	if(session.getAttribute("myAccount")!=null){
		myAccount =(Account) session.getAttribute("myAccount");
	}
	
%>
  	<!--LOGO-->
	<div class="grid_8" id="logo"><a href="#" target="_blank" style="color: #FFFFFF">AAL Administration</a></div>
    <div class="grid_8">
<!-- USER TOOLS START -->
      <div id="user_tools"><span> Chào <a href="#"><%=myAccount.getUserName() %></a>   |  <a href="../Account_logout">Đăng xuất</a></span></div>
    </div>
<!-- USER TOOLS END -->    
<div class="grid_16" id="header">
<!-- MENU START -->
<div id="menu" style="margin: 0px auto;">

	<!-- Menu cho SP -->
	<%
		if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Thủ kho") ){
	%>
	<jsp:include page="storekeeper/menuSK.jsp"></jsp:include>
	<!--Menu Manager-->
	<%
		} else if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Quản lý") ){
	%>
	<jsp:include page="manager/menuManager.jsp"></jsp:include>
	<!-- Coordinator -->
	<%
		} else if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Bộ phận điều phối") ){
	%>
	<jsp:include page="coordinator/menuCoordinator.jsp"></jsp:include>
	<!-- HO -->
	<%
		} else if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Header Office") ){
	%>
	<jsp:include page="ho/menuHO.jsp"></jsp:include>
	<!-- Planner -->
	<%
	}else	if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Bộ phận lập kế hoạch") ){
	%>
	<jsp:include page="planner/menuPlan.jsp"></jsp:include>
	<%
	}%>
</div>
<!-- MENU END -->
</div>
<!-- ----------------------------------SUB menu----------------------------------------- -->
<!-- Sub menu -->
<!-- Menu cho SP -->
	<%
		if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Thủ kho") ){
	%>
	<jsp:include page="storekeeper/subMenu.jsp"></jsp:include>
	<!--Menu Manager-->
	<%
		} else if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Quản lý") ){
	%>
	<jsp:include page="manager/subMenu.jsp"></jsp:include>
	<!-- Coordinator -->
	<%
		} else if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Bộ phận điều phối") ){
	%>
	<jsp:include page="coordinator/subMenu.jsp"></jsp:include>
	<!-- HO -->
	<%
		} else if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Header Office") ){
	%>
	<jsp:include page="ho/subMenu.jsp"></jsp:include>
	<!-- Planner -->
	<%
	}else	if(myAccount!=null && myAccount.getEmployee()!=null && myAccount.getEmployee().getDepartment().getDepartmentName().equalsIgnoreCase("Bộ phận lập kế hoạch") ){
	%>
	<jsp:include page="planner/subMenu.jsp"></jsp:include>
	<%
	}%>
